<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<c:if test="${StudentList == null}">
	<jsp:forward page="/stu/stuList" />
</c:if>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>学员列表</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  <body>
  	<div align="center">
  		<h1>商品信息列表</h1>
		<table border="1" width="600" id="student">
	      	<tr>
	      		<td align="center">商品编号</td>
	      		<td align="center">商品名称</td>
	      		<td align="center">商品价格</td>
	      		<td align="center">库存数量</td>
	      		<td align="center">订单状态</td>
	      		<td align="center">操作</td>
	      	</tr>
	      	<c:forEach var="stu" items="${StudentList }">
	      		<tr>
		      		<td align="center">${stu.id}</td>
		      		<td align="center">${stu.name}</td>
		      		<td align="center">${stu.age}</td>
		      		<td align="center">${stu.gender}</td>
		      		<td align="center">${stu.phone}</td>
		      		<td align="center">${stu.email}</td>
		      		<td align="center">${stu.classes.name}</td>
		      	</tr>
	      	</c:forEach>
	   </table>
	</div>
  </body>
</html>
